package com.vhall.component.entity.vote;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 投票数量表
 * </p>
 *
 * @author longzhen.gong
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("vote_option_count")
public class VoteOptionCountEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 表单选项id
     */
    @TableField("option_id")
    private Long optionId;

    /**
     * 表单问题id
     */
    @TableField("question_id")
    private Long questionId;

    /**
     * 房间投票关联id
     */
    @TableField("rvlk_id")
    private Long rvlkId;

    /**
     * 投票选项 A-T
     */
    @TableField("`option`")
    private String option;

    /**
     * 选项投票数
     */
    @TableField("count")
    private Integer count;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;


}
